/*  1:   */ package org.jetbrains.rpc;
/*  2:   */ 
/*  3:   */

import com.intellij.openapi.util.AsyncResult;
import com.intellij.util.PairConsumer;

/*  4:   */
/*  5:   */ 
/*  6:   */ final class NestedCommandCallbackWithResponse<SUCCESS_RESPONSE, RESULT, MAIN_RESULT, ERROR_DETAILS>
/*  7:   */   extends CommandCallbackWithResponseBase<SUCCESS_RESPONSE, AsyncResult<MAIN_RESULT>, RESULT, ERROR_DETAILS>
/*  8:   */ {
/*  9:   */   private final PairConsumer<RESULT, AsyncResult<MAIN_RESULT>> c;
/* 10:   */   
/* 11:   */   public NestedCommandCallbackWithResponse(AsyncResult<MAIN_RESULT> paramAsyncResult, String paramString, PairConsumer<RESULT, AsyncResult<MAIN_RESULT>> paramPairConsumer)
/* 12:   */   {
/* 13:11 */     super(paramAsyncResult, paramString, null);
/* 14:   */     
/* 15:13 */     this.c = paramPairConsumer;
/* 16:   */   }
/* 17:   */   
/* 18:   */   protected void onSuccess(RESULT paramRESULT)
/* 19:   */   {
/* 20:18 */     this.c.consume(paramRESULT, this.callback);
/* 21:   */   }
/* 22:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.rpc.NestedCommandCallbackWithResponse

 * JD-Core Version:    0.7.0.1

 */